#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int Jisuan(int x, int y)
{
	int final = (-8 + 22) * x - 10 + y/2;
	return final;

}

int main()
{
	int a = 40, c = 212;
	printf("sum=%d\n", Jisuan(a, c));


	return 0;
}